yum -y install xfsprogs

<%
    if (requiresInitialization) {
%>
mkfs.xfs ${ebsVolume.device}
<%
    }
%>

echo "${ebsVolume.device} /vol xfs noatime 0 0" >> /etc/fstab

mkdir /vol
mount /vol

<%
    if (requiresInitialization) {
%>
mkdir /vol/lib /vol/log
mv /var/lib/mysql /vol/lib/
<%
    }
%>
